home *** CD-ROM | disk | FTP | other *** search
/ MacTech 1 to 12 / MacTech-vol-1-12.toast / Source / Dave Mark / Learn C on the Mac / libs & .h files / THINK.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-02-01  |  1.9 KB  |  130 lines  |  [TEXT/KAHL]

  1.  
  2. /*
  3.  *  THINK.h - THINK C extensions to Apple headers
  4.  *
  5.  *  Copyright (c) 1991 Symantec Corporation.  All rights reserved.
  6.  *
  7.  *  These interfaces are based on material copyrighted
  8.  *  by Apple Computer, Inc., 1985-1991.
  9.  *
  10.  *  This file contains material that has traditionally been part of
  11.  *  the THINK C interfaces, but which does not appear in the Apple
  12.  *  headers we are now using.  It is provided for backward compatibility.
  13.  *
  14.  */
  15.  
  16. #ifndef __THINK__
  17. #define __THINK__
  18.  
  19. #ifndef __TYPES__
  20. #include <Types.h>
  21. #endif
  22.  
  23.  
  24. #ifndef __FILES__
  25. #include <Files.h>
  26. #endif
  27.  
  28. #ifndef __QUICKDRAW__
  29. #include <Quickdraw.h>
  30. #endif
  31.  
  32.  
  33. #ifdef __cplusplus
  34. extern "C" {
  35. #endif
  36.  
  37.  
  38. #if 0
  39.  
  40.     /*  SystemEdit arguments  */
  41.  
  42. enum {
  43.     undoCmd,
  44.     cutCmd = 2,
  45.     copyCmd,
  46.     pasteCmd,
  47.     clearCmd
  48. };
  49.  
  50.  
  51.     /*  dCtlFlags bits  */
  52.  
  53. #define    dNeedLock        0x4000
  54. #define dNeedTime        0x2000
  55. #define dNeedGoodBye    0x1000
  56. #define dStatEnable        0x0800
  57. #define dCtlEnable        0x0400
  58. #define dWritEnable        0x0200
  59. #define dReadEnable        0x0100
  60. #define drvrActive        0x0080
  61. #define dRAMBased        0x0040
  62. #define dOpened            0x0020
  63.  
  64.  
  65.     /*  I/O traps  */
  66.  
  67. #define aRdCmd            2
  68. #define aWrCmd            3
  69. #define asyncTrpBit        0x0400
  70. #define noQueueBit        0x0200
  71.  
  72.  
  73.     /*  buttons  */
  74.  
  75. enum {
  76.     OK = 1,
  77.     Cancel
  78. };
  79.  
  80. #endif
  81.  
  82.     /*  QuickDraw globals  */
  83.  
  84. extern GrafPtr    thePort;
  85. extern Pattern    white;
  86. extern Pattern    black;
  87. extern Pattern    gray;
  88. extern Pattern    ltGray;
  89. extern Pattern    dkGray;
  90. extern Cursor    arrow;
  91. extern BitMap    screenBits;
  92. extern long        randSeed;
  93.  
  94.     /*  Rect macros  */
  95.  
  96. #define topLeft(r)        (((Point *) &(r))[0])
  97. #define botRight(r)        (((Point *) &(r))[1])
  98.  
  99.  
  100.     /*  Booleans  */
  101.  
  102. #define TRUE            1
  103. #define FALSE            0
  104.  
  105. #if 0
  106.  
  107.     /*  param blocks  */
  108.  
  109. typedef IOParam ioParam;
  110. typedef FileParam fileParam;
  111. typedef VolumeParam volumeParam;
  112. typedef CntrlParam cntrlParam;
  113.  
  114. #endif
  115.     /*  multi-segment non-applications  */
  116.  
  117. void UnloadA4Seg(void *);
  118.  
  119.  
  120.     /*  menu bar height (from Script.h)  */
  121.  
  122. #define GetMBarHeight() (* (short*) 0x0BAA)
  123.  
  124.  
  125. #ifdef __cplusplus
  126. }
  127. #endif
  128.  
  129. #endif // __THINK__
  130.